package com.ruoyi.hire.domain.vo;


import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class CompanyRegisterVo {

    /**
     * 手机号
     */
    @NotEmpty(message = "手机号不能为空")
    private String phoneNumber;


    /**
     * 短信验证码
     */
    @NotEmpty
    @Size(min = 6, max = 6, message = "短信验证码不正确")
    private String smsCode;


    /**
     * 密码
     */
    @NotEmpty
    @Size(min = 8, max = 20, message = "密码长度必须在{min}-{max}之间")
    private String password;


    /**
     * 确认密码
     */
    @NotEmpty
    @Size(min = 8, max = 20, message = "确认密码长度必须在{min}-{max}之间")
    private String checkPassword;


    /**
     * 用人单位组织机构代码
     */
    @NotEmpty
    @Size(min = 18, max = 18, message = "单位组织机构代码长度默认为18位")
    private String companyCode;
}
